<template>
    <div>
        
    </div>
</template>

<script>
    import emitter from './utils/eventbus'

    export default {
       created() {
           emitter.on('leon', (info) => {
               console.log(info);
           });

            // 监听所有事件
           emitter.on('*', (type, info) => {
               console.log('* listener:', type, info);
           })
       }
    }
</script>

<style scoped>

</style>